package com.yhx.iservice;

import com.yhx.pojo.Permission;
import com.yhx.utils.PageResult;
import com.yhx.utils.QueryPageBean;
import com.yhx.utils.Result;

import java.util.List;

public interface IPermissionService {
    PageResult listpage(QueryPageBean queryPageBean);

    Result save(Permission permission);

    Result getByid(int id);

    Result update(Permission permission);

    Result delete(Integer[] ids);

    List<Permission> list();

    List<Permission> listByUserId(int userId);
}
